﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Form.Master" AutoEventWireup="true" CodeBehind="Form.aspx.cs" Inherits="BBPA.Admin.SYS.Goods.Form"  validateRequest="false"%>

<%@ MasterType VirtualPath="~/Form.Master" %>
<%@ Register Src="~/Controls/DDL_Category.ascx" TagPrefix="uc1" TagName="DDL_Category" %>
<%@ Register Src="~/Controls/DDL_Supplier.ascx" TagPrefix="uc1" TagName="DDL_Supplier" %>
<%@ Register Src="~/Controls/DDL_Brand.ascx" TagPrefix="uc1" TagName="DDL_Brand" %>



<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    <%--本页--%>
    <script type="text/javascript" src="/ckeditor/ckeditor.js" mce_src="/ckeditor/ckeditor.js"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_main" runat="server">
    <div class="control-group">
        <label class="control-label">
            商品名称
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Name" runat="server" required="required" placeholder="必填"></asp:TextBox>
            <p  class="help-block">请按照以下格式填写：品牌名+品类名+型号<br>如：甜心妈咪葡萄籽多酚精华素30ML</p>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            简称
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_ShortName" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            分类
        </label>
        <div class="controls">
            
            <uc1:DDL_Category runat="server" ID="DDL_Category" ClassName="span2" />
               
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            品牌
        </label>
        <div class="controls">
            <uc1:DDL_Brand runat="server" id="DDL_Brand"  ClassName="span3"/>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            型号
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_Code" runat="server" Text="1"></asp:TextBox>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            规格
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_normnum" runat="server"></asp:TextBox>
            <asp:DropDownList ID="dll_normtype" runat="server">
                <asp:ListItem Value="桶">桶</asp:ListItem>
                <asp:ListItem Value="盒">盒</asp:ListItem>
                <asp:ListItem Value="袋">袋</asp:ListItem>
                <asp:ListItem Value="个">个</asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="ddl_norm" runat="server">
                <asp:ListItem Value="箱">箱</asp:ListItem>
                <asp:ListItem Value="瓶">瓶</asp:ListItem>
                <asp:ListItem Value="袋">袋</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
   
    <div class="control-group" id="group_Supplier" runat="server">
        <label class="control-label">
            供货商
        </label>
        <div class="controls">
            <uc1:DDL_Supplier runat="server" ID="DDL_Supplier" ClassName="span3" />
        </div>
    </div>
    <div class="control-group" id="Div1" runat="server">
        <label class="control-label">
            来源
        </label>
        <div class="controls">
            <asp:DropDownList ID="ddl_ComeForm" runat="server" data-noselect2="1">
                <asp:ListItem Selected="True" Value="1">国产</asp:ListItem>
                <asp:ListItem Value="2">国标进口</asp:ListItem>
                <asp:ListItem Value="3">海外直邮</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            <%=BuyPriceTitle%>
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_BuyPrice" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="control-group" id="group_SellPrice" runat="server">
        <label class="control-label">
            联盟售价
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_SellPrice" runat="server"></asp:TextBox>
        </div>
    </div>
    <div class="control-group" id="grouop_SuggestStorePrice" runat="server">
        <label class="control-label">
            建议店铺零售价
        </label>
        <div class="controls">
            <asp:TextBox ID="tb_SuggestStorePrice" runat="server"></asp:TextBox>
        </div>
    </div>
    
    <div class="control-group">
        <label class="control-label">
            
        </label>
        <div class="controls">
            <label class="checkbox inline"><asp:CheckBox ID="cb_IsOffShelf" runat="server" Text="下架" /></label>
        </div>
    </div>
    <div class="control-group" id="group_StateCheck" runat="server" visible="false">
        <label class="control-label">
            
        </label>
        <div class="controls">
            <label class="checkbox inline"><asp:CheckBox ID="cb_StateCheck" runat="server" Text="通过审核" /></label>
        </div>
    </div>

     <div class="control-group">
        <label class="">
            <button type="button" class="btn" onclick="parent.buildCkFinder(1, 'multi', '选择商品图片');">选择图片</button>
        </label>
        <div class="" >
            <ul id="ul_Pic">
                <asp:Repeater ID="rp_pic" runat="server">
                    <ItemTemplate>
                        <li class="">
                            <i class="picdeler fa fa-times-circle" onclick="delPic(this)"></i>
                            <img src="<%#Eval("URL").ToString().Replace("UploadFiles","UploadFiles/_thumbs") %>" class=""/>
                            <div><input type="text" name="title" value="<%#Eval("Title") %>" placeholder="标题" /></div>
                            <input type="hidden" name="picid" value="<%#Eval("ID") %>" />
                            <input type="hidden" name="url" value="<%#Eval("URL") %>" />
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
    </div>



    <div class="control-group">
        <label class="">
            介绍
        </label>
        <div class=" ckeditorBox">
            <asp:TextBox ID="tb_Description" runat="server" CssClass="ckeditor" TextMode="MultiLine"></asp:TextBox>
                   
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_bottom" runat="server">

    <div id="template_pic" class="hide">
        <li>
                    <i class="picdeler fa fa-times-circle" onclick="delPic(this)"></i>
            <img src="" />
            <div><input type="text" name="title" placeholder="标题" /></div>
            <%--<input type="radio" name="iscover"   />封面图片--%>
            <input type="hidden" name="picid" value="0" />
            <input type="hidden" name="url" value="" />

        </li>
</asp:Content>
